import React from 'react';

class DataBox extends React.Component {

	constructor(props) {
	  super(props);
	}

	render() {
		return (
			this.props.data.map((content,index)=>
				<dd key={content.id}>
					<span className={index<3?"prefront":""}>{(index+1)+"、"}</span>
					<a href={"post?id="+content.id}>{content.posttitle}</a>
					<i>{new Date(content.createTime).toLocaleTimeString()}</i>
					<em>{"【"+content.replynum+"回复/"+content.readnum+"浏览】"}</em>
					<div className="clear"></div>
				</dd>				
			)
		)
	}

}

export default DataBox